<%--
  Created by IntelliJ IDEA.
  User: c
  Date: 2017-11-30
  Time: 16:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>医疗用品出库登记</title>
    <%@include file="/WEB-INF/jsp/header.jsp"%>
</head>
<style>
    table td{
        font: 14px 'microsoft yahei', 微软雅黑, Helvetica, Arial, Tahoma, 黑体, 宋体, sans-serif;
    }
    div.title-pur p{
        font-size: 15px;
        margin-bottom: 8px;
    }

</style>
<body>
<div class="container-fluid">
    <div style="text-align: center;margin-bottom: 10px;">
        <span class="h3">药品出库登记</span>
    </div>
    <div class="container-fluid" style="width: 90%;">

        <div style="font-size: 16px; margin-top: 15px;" class="row">
            <form class="form-horizontal">
                <div class="col-md-4 title-pur">
                    <div class="">
                        <label class=" col-md-5">领药人员：</label>
                        <div class="form-group col-md-7">
                            <select style="width:156px;" onchange="selChange(this)" class="form-control" id="proNum" name="proNum">
                                <option value="-1">--请选择--</option>
                            </select>
                        </div>
                    </div>
                    <div class="">
                        <label class=" col-md-5">所属科室：</label>
                        <div class="form-group col-md-7">
                            <p id="divName" style="border-bottom:1px solid black;">&nbsp;</p>
                        </div>
                    </div>

                </div>
                <div class="col-md-4 title-pur">
                    <div class="">
                        <label class=" col-md-5">制单人员:</label>
                        <div class="form-group col-md-7">
                            <p style="border-bottom:1px solid black;" class="osOperator">${sessionScope.loginUser.woName}</p>
                            <p style="display: none;" class="osOperNum">${sessionScope.loginUser.woJubnum}</p>
                        </div>
                    </div>
                    <div class="">
                        <label class=" col-md-5">科室电话：</label>
                        <div class="form-group col-md-7">
                            <p id="divPhone" style="border-bottom:1px solid black;">&nbsp;</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4 title-pur">
                    <div class="">
                        <label class=" col-md-5">单据编号:</label>
                        <div class="form-group col-md-7">
                            <p style="border-bottom:1px solid black;" class="osNum">&nbsp;</p>
                        </div>
                    </div>
                    <div class="">
                        <label class=" col-md-5">制单日期:</label>
                        <div class="form-group col-md-7">
                            <p style="border-bottom:1px solid black;" class="osLeadtime">&nbsp;</p>
                        </div>
                    </div>

                </div>
            </form>
            <table id="delTable" class="table table-bordered table-striped">
                <tr>
                    <td colspan="9" class="text-right" style="color: red;">
                        <button class="layui-btn layui-btn-small layui-btn-normal" id="dengji" onclick="openDia()">登记出库药品</button>
                    </td>
                </tr>
                <tr class="back">
                    <th>药品编号</th>
                    <th>药品名称</th>
                    <th>药品批号</th>
                    <th>零售价格</th>
                    <th>出库数量</th>
                    <th>有效日期</th>
                    <th>
                        操作
                    </th>
                </tr>
            </table>

            <div class="text-center caoz"  style="margin-top: 40px;">
                <%--<button type="button" data-content="批量补货，只能补货一定量!" data-original-title="批量进行补货" class="btn btn-success ru" onclick="addDrugsto()">验收入库</button>--%>
                <button type="button"
                        class="btn btn-success ru" onclick="addOutDeltails()" >
                    出库
                </button>
                    &nbsp;&nbsp;&nbsp;
                    <button type="button"
                            class="btn btn-primary ru">
                        重置
                    </button>

            </div>
        </div>
    </div>

    <div class="insertOutDels">

    </div>

    <div class="updateOutDels">

    </div>

    <div id="OutDels" style="display: none">
        <form action="" id="purDelForm" class="form-horizontal">
            <input type="hidden" name="planNum" value=""/>
            <div class="form-group">
                <label for="" class="control-label col-md-3">药品名称：</label>
                <div class="form-group col-md-6">
                    <select style="width:260px;" class="form-control jiaDrugNum" onchange="searchDrugStock(this),checkjiaDrugNum(this)" id="drugNum" name="drugNum">
                        <option value="-1" class="bus">--请选择--</option>
                    </select>
                </div>
                <p class=" col-md-3" style="line-height: 34px; ">
                    <i style="color: red;">*</i>
                    <span class="checkjiaDrugNum" style="color: red;"></span>
                </p>
            </div>
            <div class="form-group">
                <label for="" class="control-label col-md-3">药品批号：</label>
                <div class="form-group col-md-5">
                    <select style="width:220px;" class="form-control stoLotnum" onchange="searchOneDrugInfo(this),checkStoLotnum(this)" id="stoLotnum" name="osdLotnum">
                        <option value="-1" class="bus">--请选择--</option>
                    </select>
                </div>
                <p class=" col-md-4" style="line-height: 34px; ">
                    <i style="color: red;">*</i>
                    <span class="checkosdLotnum" ></span>
                </p>
            </div>
            <div class="form-group">
                <label for="" class="control-label col-md-3">零售价格：</label>
                <div class="form-group col-md-5">
                    <input type="text" readonly="readonly" name="osdOneprice" class="form-control">
                </div>

            </div>
            <div class="form-group">
                <label for="" class="control-label col-md-3">有效日期：</label>
                <div class="form-group col-md-5">
                    <input type="text" readonly="readonly" name="osdValiddate" class="form-control">
                    <p class="checkosdValiddate">

                    </p>
                </div>
            </div>
            <div class="form-group">
                <label for="" class="control-label col-md-3">现有数量：</label>
                <div class="form-group col-md-5">
                    <input type="text" readonly="readonly" name="delQoh" class="form-control" value="">
                </div>
            </div>
            <div class="form-group">
                <label for="" class="control-label col-md-3">出库数量：</label>
                <div class="form-group col-md-5">
                    <input type="text" name="osdNum" onblur="checkosdNum()" onfocus="huifu()" class="form-control">
                </div>
                <p class=" col-md-4" style="line-height: 34px; ">
                    <i style="color: red;">*</i>
                    <span class="checkosdNum" ></span>
                </p>
            </div>
        </form>
    </div>
    <%@include file="/WEB-INF/jsp/footer.jsp"%>
    <script src="${ctx}/res/js/drug_pos.js"></script>
</div>
</body>
</html>
